package com.common.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author 长顺
 * @since 2020-11-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Site对象", description="")
public class Site implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "充电站主键")
    @TableId(value = "site_id", type = IdType.ID_WORKER_STR)
    private String siteId;

    @ApiModelProperty(value = "充电站名字")
    private String siteName;

    @ApiModelProperty(value = "充电站地址")
    private String siteAddress;

    @ApiModelProperty(value = "电桩照片地址")
    private String sitePiePhoto;

    @ApiModelProperty(value = "车位照片地址")
    private String siteStallPhoto;

    @ApiModelProperty(value = "电桩全景图地址")
    private String sitePanoramaPhoto;

    @ApiModelProperty(value = "经度")
    private String siteLongitude;

    @ApiModelProperty(value = "纬度")
    private String siteDimensionality;

    @ApiModelProperty(value = "停车场地（0：地上，1：地下，默认0）")
    private Integer sitePlace;

    @ApiModelProperty(value = "是否24小时（0：是，1：否，默认0）")
    private Integer siteAllday;

    @ApiModelProperty(value = "备注")
    private String siteRemark;

    @ApiModelProperty(value = "状态（0：待审批、1：使用、2：废弃、,默认0）")
    private Integer siteState;

    @ApiModelProperty(value = "版本")
    @Version
    private Integer siteVersion;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date siteCreateTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date siteModifyTime;


}
